import { getColumnsData } from "../common";

const withdrawRecordListTable = [
  {
    user_id: "ID: 4997", // 用户ID
    user_name: "账号: 15555555555", // 用户账号
    withdraw_money: "719", // 提现金额
    service_charge: "0", // 手续费
    actualToAccount: "700.00", // "实际到账"
    amountType: "可用余额", // "金额类型"
    reviewStatus: "等待审核", // "审核状态"
    recipientAccount: "6214836331781076", // "收款账号"
    recipientName: "史国亮", // "收款姓名"
    paymentMethod: "中国建设银行", // "收款方式"
    applicationTime: "2023-06-09 16:55:02" // "申请时间"
  }
];

const headerList = [
  {
    width: "100px",
    label: "编号",
    prop: "id",
    sortable: true
  },
  {
    width: "180px",
    label: "提现用户",
    showValue: [
      {
        class: "",
        key: "user_id",
        tableType: "withdrawRecordList"
      },
      {
        class: "",
        key: "user_name",
        tableType: "withdrawRecordList"
      }
    ]
  },
  {
    width: "130px",
    label: "提现金额",
    prop: "withdraw_money"
  },
  {
    width: "130px",
    label: "手续费",
    prop: "service_charge"
  },
  {
    width: "130px",
    label: "实际到账",
    prop: "actualToAccount"
  },
  {
    width: "150px",
    label: "金额类型",
    prop: "amountType"
  },
  {
    width: "150px",
    label: "审核状态",
    prop: "reviewStatus",
    tableType: "withdrawRecordList"
  },
  {
    label: "收款账号",
    prop: "recipientAccount"
  },
  {
    label: "收款姓名",
    prop: "recipientName"
  },
  {
    label: "收款方式",
    prop: "paymentMethod"
  },
  {
    label: "申请时间",
    prop: "applicationTime"
  },
  {
    label: "审核",
    width: "120px",
    hideCheck: true,
    fixed: "right",
    showValue: [
      {
        class: "",
        key: "编辑",
        cellType: "button",
        type: "primary", // 按钮类型
        buttonType: "edit",
        tableType: "withdrawRecordList" // 表格类型,用于点击事件时,区分是哪个表格的按钮
      }
    ]
  }
];

const withdrawRecordListColumns = [];

getColumnsData(
  "withdrawRecordList",
  withdrawRecordListColumns,
  headerList,
  res => {
    console.log("withdrawRecordList", res);
  }
);
export { withdrawRecordListTable, withdrawRecordListColumns };
